<template>
	<view class="vip-card">
		<view class="vip-content">			
			<view>
				<view class="name">成为<text class="text">VIP会员</text></view>
				<view class="remark">了解12项特权~</view>
			</view>
			<view class="vip-btn" v-if="userInfo.isVip">
				<text class="text">查看特权</text>
			</view>
			<view class="vip-btn" v-else>
				<text class="text">立即开通</text>
			</view>
		</view>
	</view>
</template>

<script>
	import sheep from '@/sheep'; 
	export default {
		data() {
			return {
				
			}
		},
		computed: {
			userInfo: {
			    get() {
			      return sheep.$store('user').userInfo;
			    },
			},
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.vip-card {
		background-image : url(/static/images/personal_vip_status_de.png);
		background-repeat: no-repeat;
		background-size: 100% auto;
		width: 100%;
		height: 100rpx;
		border-radius: 12rpx;
		position: relative;
		z-index: 1;
		margin-bottom: 20rpx;
		
		.vip-content {
			position: absolute;
			left: 120rpx;
			right: 0;
			top: 0;
			bottom: 0;
			color: #E0E0E0;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 0rpx 30rpx;
			
			.name {
				color: #a8f9e4;
				font-size: 35rpx;
				font-weight: bold;
				margin-bottom: 10rpx;
				display: flex;
				align-items: center;
			}
			
			.text {
				font-size: 32rpx;
			}
			
			.remark {
				font-size: 25rpx;
				color: rgba(255, 255, 255, 0.9);
			}
			
			.vip-btn {
				background-image: linear-gradient(19deg, #FAACA8 0%, #DDD6F3 100%);
				padding: 14rpx 20rpx;
				border-radius: 80rpx;
				.text {
					font-size: 25rpx;
					margin-left: 4rpx;
					color: #784BA0;
				}
			}
		}
	}
	
	.vip-card:after {
		content: " ";
		position: absolute;
		z-index: -1;
		width: 100%;
		height: 100%;
		left: 0;
		bottom: 0;
		border-radius: inherit;
		opacity: 1;
		-webkit-transform: scale(1, 1);
		transform: scale(1, 1);
		background-size: 100% 100%;
	}
</style>